package com.bifrost.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * @com.bifrost.model
 * @wechat-mall
 * @lee Create Class on 2018/4/9
 */
@Data
@ApiModel("SKU规格详情")
public class OptionModel implements Serializable {
    @ApiModelProperty(name = "optionName" , value = "规格" ,required = true )
    @NotBlank(message = "规格名称不能为空")
    private String optionName;
    private Long optionNameId;
    @NotBlank(message = "规格详情名称不能为空")
    @ApiModelProperty(name = "optionValueName" , value = "规格描述" ,required = true )
    private String optionValueName;
    private Long optionValueNameId;

    private Long optionXrefId;
}
